﻿using DevExpress.ExpressApp;
using DevExpress.ExpressApp.SystemModule;

namespace EasyXaf.EntityDesigner.Controllers;

public class DisableSaveAndNewViewController : ViewController
{
    protected override void OnActivated()
    {
        base.OnActivated();

        var modificationsController = Frame.GetController<ModificationsController>();
        if (modificationsController != null)
        {
            modificationsController.SaveAndNewAction.Active[GetType().FullName] = false;
        }
    }
}
